<?php
require_once "config.php";
require_once "filter.php";
require_once "includeFunctions.php";
require_once "FacebookAPI.php";
session_start();
$facebookAPI = new FacebookAPI();


if(!isset($_GET['q'])){
	$query = urlencode('貸款');
}
else{
	$query = urlencode($_GET['q']);	
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns:og="http://www.w3.org/1999/xhtml" lang="zh-TW" xml:lang="zh-TW">

<head>
  <title>ULikeWall - <?php echo $_GET['q']; ?></title>
  <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
  <meta name="keywords" content="<?php echo $_GET['q']; ?>" />
  <meta name="description" content="ULikeWall <?php echo $_GET['q']; ?>" />
  <meta property="og:title" content="ULikeWall <?php echo $_GET['q']; ?>"/>
  <meta property="og:url" content="<?php echo $host_path.'results/'.$_GET['q']?>"/>
  <meta property="og:site_name" content="ULikeWall"/>
  <meta property="og:description" content="ULikeWall <?php echo $_GET['q']; ?>"/>
  <link rel="stylesheet" type="text/css" href="styles/css/html.css" media="screen, projection, tv " />
  <link rel="stylesheet" type="text/css" href="styles/css/layout.css" media="screen, projection, tv" />
  <link rel="stylesheet" type="text/css" href="styles/css/print.css" media="print" />
  <script src="styles/js/jquery.js" type="text/javascript"></script>
  <script src="styles/js/ajax.js" type="text/javascript"></script>
  <script src="styles/js/ulikewall.js" type="text/javascript"></script>
  <script src="styles/js/jquery.scrollTo-1.4.2-min.js" type="text/javascript"></script>
  <script src="styles/js/jquery.highlight.js" type="text/javascript"></script>
  <script type="text/javascript">
  	$(document).ready(function(){
		highlightWords();
	});
	
	function highlightWords(){
		$("div").highlight("<?php echo $_GET['q']; ?>");
	}
  </script>
</head>
<body onload="triggerADs()">
<div id="content">
  <div id="header">
    <div id="title">
      <h1></h1>
      <h2></h2>
    </div>
    <img src="styles/images/bg/balloons.gif" alt="balloons" class="balloons" />
    <img src="styles/images/bg/header_left.jpg" alt="left slice" class="left" />
    <img src="styles/images/bg/header_right.jpg" alt="right slice" class="right" />
  </div>
  <?php require_once "include/tags.php";?>
  <div id="page">
  	<div class="width65 floatLeft" id="ads_top_1"></div>
		<div class="width100 floatLeft" >
			<div class="width70 floatLeft gradient" id="google_result">
			<?php 
			//require_once "lib/searchFBAPI.php"; 
			require_once "searchGoogleAPI.php";
			
			?>
			</div>
			<div class="width25 floatLeft ads" id="ads_right_bottom"></div>
		</div>
	<div class="width65 floatLeft" id="ads_bottom_1"></div>
  </div>
  <div class="alignCenter" id="loading_img" style="display:none;" ><img src="styles/images/ui-anim_basic_16x16.gif"/></div>
</div>
<div id="footer">
  <div id="width">
  	copyright &copy; ULikeWall	
  </div>
</div>
</body>
</html>